﻿using FikriKibar.Entities.Composite.UserModels;
using FikriKibar.Globalization;
using FluentValidation;

namespace FikriKibar.Common.Validation.FluentValidation.User
{
    class LoginRules : AbstractValidator<LoginModel>
    {
        public LoginRules()
        {
            RuleFor(p => p.Username).NotEmpty().WithMessage(Resources.UsernameNotEmpty);
            RuleFor(p => p.Password).NotEmpty().WithMessage(Resources.PasswordNotEmpty);

        }
    }
}
